<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/4/10
 * Time: 17:33
 */

namespace common\sources\read\buyrechargerecord;

use Yii;
use common\models\craftsman\BuyRechargeRecord;

class BuyRechargeRecordAccess
{
    public function getBuyRechargeRecord($order_id)
    {
        return BuyRechargeRecord::find()
                ->select("id,buy_id,amount,status,pay_type")
                ->where(['order_id' => $order_id])
                ->one();
    }
}